package com.honey.solr;

import com.honey.core.types.FullyQualifiedJavaType;

public class SolrConstant {
	
	public static final String SOLR_SERVER_FIELD_NAME= "solrServer";
	
	public static final String IS_AUTO_COMMIT= "autoCommit";
	
	public static final FullyQualifiedJavaType SOLR_SERVER = new FullyQualifiedJavaType("org.apache.solr.client.solrj.SolrServer");	
	
	public static final FullyQualifiedJavaType COLLECTION_SOLR_INPUT_DOCUMENT = new FullyQualifiedJavaType("java.util.Collection<SolrInputDocument>");
	
	public static final FullyQualifiedJavaType COLLECTION_BEAN = new FullyQualifiedJavaType("java.util.Collection<?>");
	
	public static final FullyQualifiedJavaType UPDATE_RESPONSE = new FullyQualifiedJavaType("org.apache.solr.client.solrj.response.UpdateResponse");
	public static final FullyQualifiedJavaType SOLR_PING_RESPONSE = new FullyQualifiedJavaType("org.apache.solr.client.solrj.response.SolrPingResponse");
	public static final FullyQualifiedJavaType QUERY_RESPONSE = new FullyQualifiedJavaType("org.apache.solr.client.solrj.response.QueryResponse");
	public static final FullyQualifiedJavaType SOLR_PARAMS = new FullyQualifiedJavaType("org.apache.solr.common.params.SolrParams");
	public static final FullyQualifiedJavaType SOLR_REQUEST = new FullyQualifiedJavaType("org.apache.solr.client.solrj.SolrRequest");
	public static final FullyQualifiedJavaType SOLR_REQUEST_METHOD = new FullyQualifiedJavaType("SolrRequest.METHOD");
	public static final FullyQualifiedJavaType SOLR_QUERY = new FullyQualifiedJavaType("org.apache.solr.client.solrj.SolrQuery");
	
	
	public static final FullyQualifiedJavaType SOLR_SERVER_EXCEPTION = new FullyQualifiedJavaType("org.apache.solr.client.solrj.SolrServerException");
	
	public static final FullyQualifiedJavaType SOLR_INPUT_DOCUMENT = new FullyQualifiedJavaType("org.apache.solr.common.SolrInputDocument");
	
	/** 通用的 */
	public static final String SOLR_SCHEMA_GENERAL_FIELD_TYPE = "text_general";
	
	public static final String SOLR_SCHEMA_CHINESE_FIELD_TYPE = "text_zh";
	
	public static final String SOLR_SCHEMA_COPY_FIELD_NAME = "text";

	
	public static final String LUCENE_QUERY_ADAPTER = "LuceneQueryAdapter";
	
	public static final String CONDITION_ADAPTERTO_QUERY = "luceneConditionAdapter";
	
	
}
